/*
 * @Author: your name
 * @Date: 2021-06-07 13:32:51
 * @LastEditTime: 2021-06-12 11:39:46
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \UDP\CLIENT_\consumer.cpp
 */
#include "consumer.h"

Consumer::Consumer(string username,string passwd,double balance,int commodity_num,int* cart_array,int* cart_num_array)
{
    this->set_Name(username);
    this->set_Passwd(passwd);
    this->set_Balance(balance);
    this->set_Commodity_Num(commodity_num);
    this->set_Commodity_Index_Array(cart_array,commodity_num);
    this->set_Commodity_Index_Num_Array(cart_num_array,commodity_num);
    this->set_Type(CONSUMER);
}

USERTYPE Consumer::getUserType()
{
    return CONSUMER;
}